

<title>商城首页</title>
</head>
<body>

{layout name="layout1" /}
<!--幻灯片样式-->
 <div class="">
   	<div id="slideBox" class="slideBox">
			<div class="hd">
				<ul></ul>
			</div>
			<div class="bd">
				<ul>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png"/></a></li>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png" /></a></li>
					<li><a href="#" target="_blank"><img src="/static/common/images/bananer_22.png" /></a></li>
				</ul>
			</div>

			<!-- 下面是前/后按钮代码，如果不需要删除即可 -->
			<a class="prev" href="javascript:void(0)"></a>
			<a class="next" href="javascript:void(0)"></a>

		</div>
		<script type="text/javascript">
		jQuery(".slideBox").slide({titCell:".hd ul",mainCell:".bd ul",autoPlay:true,autoPage:true});
		</script>

 </div>
 <div id="mian">

 <!--热卖产品样式-->
 <div class="Selling">
   <div class="title_name">热销产品<span class="ew">Hot Products</span> <span class="jiesao">本商城最热销产品，保证安全同时与客户的见证</span><span class="more"><a href="#">更多<< </a></span></div>
   <div class="Selling_list">
    <ul class="list">
        {foreach $se_commodity as $vo}
		<li>
	  <div class="p_img"><a href="{:url('home/commodity/buy')}?id={$vo['id']}"><img src="{$vo['image']}" /></a></div>
	  <div class="p_info">
	    <p><a href="{:url('home/commodity/buy')}?id={$vo['id']}">{$vo['name']}</a></p>
		<p class="jiage">{$vo['price']}元/箱</p>
	  </div>
	 </li>
        {/foreach}
	</ul>  
   </div>
 </div>
 <!--1楼水果样式-->
 <div id="Fruits_1f">
	 <div class="Product_title"><span>Look!</span>产品展示</div>
  		<div class="Fruits_Show">
   			<div class="Fruits_one">
     			<div class="link_name">
	   				<div class="p_name">冰凉一夏</div>
					<br>
					<div class="link">
						<p>
							<a href="/home/commodity/buy?id=2">苹果</a>
							<a href="/home/commodity/buyid=14">榴莲</a>
							<a href="/home/commodity/buy?id=1">梨子</a>
							<a href="/home/commodity/buy?id=5">葡萄</a>
						<p>
							<a href="/home/commodity/buy?id=6">樱桃</a>
							<a href="/home/commodity/buy?id=10">哈密瓜</a>
							<a href="/home/commodity/buy?id=4">草莓</a>
						</p>
					</div>
	 			</div>
	 		<div class="Fruits_shuigou_a"><a href="#"><img src="/static/common/images/sg_14.png" /></a></div>
   			</div>
			<div class="Fruits_two">
				<div class="p_con_a"><a href="#"><img src="/static/common/images/sg_10.png" /></a></div>
				<div ><a href="#"><img src="/static/common/images/sg_17.png" /></a></div>
   			</div>
   			<div class="Fruits_there">
     <ul id="lists">
		 {foreach $se_commodity as $vos}
			 <li>
				 <div class="xianhi">
					 <a href="{:url('home/commodity/buy')}?id={$vos['id']}">						<p><img src="{$vos['image']}" style="width: 208px;height: 170px" /></p>
						<p>{$vos['name']}</p>
						<p class="Price">{$vos['price']}元/箱</p>
				   	</a>
				 </div>
				 <div class="Detailed" style="width: 188.5px;height: 240px">
					 <div class="content" style="margin-top: 180px">
				  		<p>{$vos['details']}</p>
				  		<p class="center"><a href="{:url('home/commodity/buy')}?id={$vos['id']}" class="Buy_btn">立即购买</a></p>
					 </div>
				 </div>
			  </li>
		 {/foreach}
	 </ul>
   </div>
  </div>
 </div>
 <!--2楼蔬菜-->
 <div class="slogen">
   <p><img src="/static/common/images/fuwu_56.png" /></p>
   <p><img src="/static/common/images/fuwu_57.png" /></p>
   <p><img src="/static/common/images/fuwu_58.png" /></p>
   <p><img src="/static/common/images/fuwu_59.png" /></p>
 </div>

</div>
<div id="bottom">
	<div class="footers">
		<div class="logo"></div>
		<div class="footer_link">


		</div>
	</div>
</div>
<!--右侧菜单栏购物车样式-->
<div class="fixedBox">
	<ul class="fixedBoxList">
		<li class="fixeBoxLi cart_bd" style="display:block;" id="cartboxs">
			<p class="good_cart">(<b class="eee">0</b>)</p>
			<a href="/home/commodity/cart">
				<span class="fixeBoxSpan"></span>
				<strong>购物车</strong>
			</a>
		</li>
		<li class="fixeBoxLi Home">
			<a href="{:url('home/index/index')}">
				<span class="fixeBoxSpan"></span>
				<strong>返回首页</strong>
			</a>
		</li>
		<li class="fixeBoxLi BackToTop">
			<span class="fixeBoxSpan"></span>
			<strong>返回顶部</strong>
		</li>
	</ul>
</div>
<script>

        $.ajax({
            type:'post',
            url:'{:url('home/commodity/cartNum')}',
            dataType:'json',

            success:function(data){
                $('#eee').text(data)
            }
        })


</script>

</body>
</html>
